package cn.fsd.vo;

import cn.fsd.domain.Commodity;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommodityBean extends Commodity implements Serializable{
  /**
   * 一级分类名称
   */
  private String firstClassName;
  /**
   * 二级分类名称
   */
  private String secondClassName;
  /**
   * 供应商名称
   */
  private String supplierName;

  public CommodityBean(Commodity commodity) {
      super(commodity.getCommodity_id(), commodity.getCommodity_code(),
          commodity.getCommodity_name(), commodity.getFirst_class(), commodity.getSecond_class(),
          commodity.getMeasure_unit(), commodity.getOriginal_price(), commodity.getDiscount(),
          commodity.getCost(), commodity.getModel_code(), commodity.getSupplier(),
          commodity.getReturnable(), commodity.getReplaceable(), commodity.getRemarks());

  }
}
